<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  <html xmlns="http://www.w3.org/1999/xhtml">
		<head>
			<!-- template designed by Marco Von Ballmoos -->
			<title>Docs For Class Twig_TokenParserBroker</title>
			<link rel="stylesheet" href="../media/stylesheet.css" />
			<meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/>
		</head>
		<body>
			<div class="page-body">			
<h2 class="class-name"><img src="../media/images/Class_logo.png"
														alt=" Class"
														title=" Class"
														style="vertical-align: middle"> Twig_TokenParserBroker</h2>

<a name="sec-description"></a>
<div class="info-box">
	<div class="info-box-title">Description</div>
	<div class="nav-bar">
					<span class="disabled">Description</span> |
													<a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>)
						|											<a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>)
						
					</div>
	<div class="info-box-body">
                <p class="implements">
            Implements interfaces:
            <ul>
                <li><a href="../twig/Twig_TokenParserBrokerInterface.html">Twig_TokenParserBrokerInterface</a></li>            </ul>
        </p>
        		<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Default implementation of a token parser broker.</p>
	<ul class="tags">
				<li><span class="field">author:</span> Arnaud Le Blanc &lt;<a href="mailto:arnaud.lb@gmail.com">arnaud.lb@gmail.com</a>&gt;</li>
			</ul>
		<p class="notes">
			Located in <a class="field" href="_slinks---common---external---Twig---TokenParserBroker.php.html">/slinks/common/external/Twig/TokenParserBroker.php</a> (line <span class="field">19</span>)
		</p>
		
				
		<pre></pre>
	
			</div>
</div>



	<a name="sec-var-summary"></a>
	<div class="info-box">
		<div class="info-box-title">Variable Summary</span></div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
						<span class="disabled">Vars</span> (<a href="#sec-vars">details</a>)
							| 
									<a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>)
							
								</div>
		<div class="info-box-body">
			<div class="var-summary">
																																								<div class="var-title">
					<img src="../media/images/Variable.png" alt=" " />
					<span class="var-type">mixed</span>
					<a href="#$brokers" title="details" class="var-name">$brokers</a>
				</div>
																<div class="var-title">
					<img src="../media/images/Variable.png" alt=" " />
					<span class="var-type">mixed</span>
					<a href="#$parser" title="details" class="var-name">$parser</a>
				</div>
																<div class="var-title">
					<img src="../media/images/Variable.png" alt=" " />
					<span class="var-type">mixed</span>
					<a href="#$parsers" title="details" class="var-name">$parsers</a>
				</div>
											</div>
		</div>
	</div>

	<a name="sec-method-summary"></a>
	<div class="info-box">
		<div class="info-box-title">Method Summary</span></div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
																		<a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>)
				 
				|
						<span class="disabled">Methods</span> (<a href="#sec-methods">details</a>)
		</div>
		<div class="info-box-body">			
			<div class="method-summary">
																																																																<div class="method-definition">
					<img src="../media/images/Constructor.png" alt=" "/>
											<span class="method-result">Twig_TokenParserBroker</span>
										<a href="#__construct" title="details" class="method-name">__construct</a>
											([<span class="var-type">array|Iterable</span>&nbsp;<span class="var-name">$parsers</span> = <span class="var-default">array()</span>], [<span class="var-type">array|Iterable</span>&nbsp;<span class="var-name">$brokers</span> = <span class="var-default">array()</span>])
									</div>
																<div class="method-definition">
					<img src="../media/images/Method.png" alt=" "/>
											<span class="method-result">void</span>
										<a href="#addTokenParser" title="details" class="method-name">addTokenParser</a>
											(<span class="var-type"><a href="../twig/Twig_TokenParserInterface.html">Twig_TokenParserInterface</a></span>&nbsp;<span class="var-name">$parser</span>)
									</div>
																<div class="method-definition">
					<img src="../media/images/Method.png" alt=" "/>
											<span class="method-result">void</span>
										<a href="#addTokenParserBroker" title="details" class="method-name">addTokenParserBroker</a>
											(<span class="var-type"><a href="../twig/Twig_TokenParserBroker.html">Twig_TokenParserBroker</a></span>&nbsp;<span class="var-name">$broker</span>)
									</div>
																<div class="method-definition">
					<img src="../media/images/Method.png" alt=" "/>
											<span class="method-result">void</span>
										<a href="#getParser" title="details" class="method-name">getParser</a>
										()
									</div>
																<div class="method-definition">
					<img src="../media/images/Method.png" alt=" "/>
											<span class="method-result">null|<a href="../twig/Twig_TokenParserInterface.html">Twig_TokenParserInterface</a></span>
										<a href="#getTokenParser" title="details" class="method-name">getTokenParser</a>
											(<span class="var-type">string</span>&nbsp;<span class="var-name">$tag</span>)
									</div>
																<div class="method-definition">
					<img src="../media/images/Method.png" alt=" "/>
											<span class="method-result">void</span>
										<a href="#setParser" title="details" class="method-name">setParser</a>
											(<span class="var-type"><a href="../twig/Twig_ParserInterface.html">Twig_ParserInterface</a></span>&nbsp;<span class="var-name">$parser</span>)
									</div>
											</div>
		</div>
	</div>		

	<a name="sec-vars"></a>
	<div class="info-box">
		<div class="info-box-title">Variables</div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
										<a href="#sec-var-summary">Vars</a> (<span class="disabled">details</span>)
						
			
										| 
									<a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>)
							
					</div>
		<div class="info-box-body">
			
<a name="var$brokers" id="$brokers"><!-- --></A>
<div class="oddrow">

	<div class="var-header">
		<img src="../media/images/Variable.png" />
		<span class="var-title">
			<span class="var-type">mixed</span>
			<span class="var-name">$brokers</span>
			 = <span class="var-default">array()</span>			(line <span class="line-number">23</span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
	<ul class="tags">
				<li><span class="field">access:</span> protected</li>
			</ul>
	
	
		
		

</div>
<a name="var$parser" id="$parser"><!-- --></A>
<div class="evenrow">

	<div class="var-header">
		<img src="../media/images/Variable.png" />
		<span class="var-title">
			<span class="var-type">mixed</span>
			<span class="var-name">$parser</span>
						(line <span class="line-number">21</span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
	<ul class="tags">
				<li><span class="field">access:</span> protected</li>
			</ul>
	
	
		
		

</div>
<a name="var$parsers" id="$parsers"><!-- --></A>
<div class="oddrow">

	<div class="var-header">
		<img src="../media/images/Variable.png" />
		<span class="var-title">
			<span class="var-type">mixed</span>
			<span class="var-name">$parsers</span>
			 = <span class="var-default">array()</span>			(line <span class="line-number">22</span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
	<ul class="tags">
				<li><span class="field">access:</span> protected</li>
			</ul>
	
	
		
		

</div>
						
		</div>
	</div>
	
	<a name="sec-methods"></a>
	<div class="info-box">
		<div class="info-box-title">Methods</div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
															<a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>)
														<a href="#sec-method-summary">Methods</a> (<span class="disabled">details</span>)
						
		</div>
		<div class="info-box-body">
			<A NAME='method_detail'></A>
<a name="method__construct" id="__construct"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<img src="../media/images/Constructor.png" />
		<span class="method-title">Constructor __construct</span> (line <span class="line-number">31</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Constructor.</p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">Twig_TokenParserBroker</span>
		<span class="method-name">
			__construct
		</span>
					([<span class="var-type">array|Iterable</span>&nbsp;<span class="var-name">$parsers</span> = <span class="var-default">array()</span>], [<span class="var-type">array|Iterable</span>&nbsp;<span class="var-name">$brokers</span> = <span class="var-default">array()</span>])
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">array|Iterable</span>
				<span class="var-name">$parsers</span><span class="var-description">: An Iterable of Twig_TokenParserInterface instances</span>			</li>
					<li>
				<span class="var-type">array|Iterable</span>
				<span class="var-name">$brokers</span><span class="var-description">: An Iterable of Twig_TokenParserBrokerInterface instances</span>			</li>
				</ul>
		
			
	</div>
<a name="methodaddTokenParser" id="addTokenParser"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<img src="../media/images/Method.png" />
		<span class="method-title">addTokenParser</span> (line <span class="line-number">52</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Adds a TokenParser.</p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			addTokenParser
		</span>
					(<span class="var-type"><a href="../twig/Twig_TokenParserInterface.html">Twig_TokenParserInterface</a></span>&nbsp;<span class="var-name">$parser</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type"><a href="../twig/Twig_TokenParserInterface.html">Twig_TokenParserInterface</a></span>
				<span class="var-name">$parser</span><span class="var-description">: A Twig_TokenParserInterface instance</span>			</li>
				</ul>
		
			
	</div>
<a name="methodaddTokenParserBroker" id="addTokenParserBroker"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<img src="../media/images/Method.png" />
		<span class="method-title">addTokenParserBroker</span> (line <span class="line-number">62</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Adds a TokenParserBroker.</p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			addTokenParserBroker
		</span>
					(<span class="var-type"><a href="../twig/Twig_TokenParserBroker.html">Twig_TokenParserBroker</a></span>&nbsp;<span class="var-name">$broker</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type"><a href="../twig/Twig_TokenParserBroker.html">Twig_TokenParserBroker</a></span>
				<span class="var-name">$broker</span><span class="var-description">: A Twig_TokenParserBroker instance</span>			</li>
				</ul>
		
			
	</div>
<a name="methodgetParser" id="getParser"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<img src="../media/images/Method.png" />
		<span class="method-title">getParser</span> (line <span class="line-number">92</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			getParser
		</span>
				()
			</div>
	
		
				<hr class="separator" />
		<div class="notes">Implementation of:</div>
			<dl>
			<dt><a href="../twig/Twig_TokenParserBrokerInterface.html#methodgetParser">Twig_TokenParserBrokerInterface::getParser()</a></dt>
						<dd>Gets the Twig_ParserInterface.</dd>
					</dl>
			
	</div>
<a name="methodgetTokenParser" id="getTokenParser"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<img src="../media/images/Method.png" />
		<span class="method-title">getTokenParser</span> (line <span class="line-number">76</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Gets a suitable TokenParser for a tag.</p>
<p class="description"><p>First looks in parsers, then in brokers.</p></p>
	<ul class="tags">
				<li><span class="field">return:</span> A Twig_TokenParserInterface or null if no suitable TokenParser was found</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">null|<a href="../twig/Twig_TokenParserInterface.html">Twig_TokenParserInterface</a></span>
		<span class="method-name">
			getTokenParser
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$tag</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$tag</span><span class="var-description">: A tag name</span>			</li>
				</ul>
		
				<hr class="separator" />
		<div class="notes">Implementation of:</div>
			<dl>
			<dt><a href="../twig/Twig_TokenParserBrokerInterface.html#methodgetTokenParser">Twig_TokenParserBrokerInterface::getTokenParser()</a></dt>
						<dd>Gets a TokenParser suitable for a tag.</dd>
					</dl>
			
	</div>
<a name="methodsetParser" id="setParser"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<img src="../media/images/Method.png" />
		<span class="method-title">setParser</span> (line <span class="line-number">97</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			setParser
		</span>
					(<span class="var-type"><a href="../twig/Twig_ParserInterface.html">Twig_ParserInterface</a></span>&nbsp;<span class="var-name">$parser</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type"><a href="../twig/Twig_ParserInterface.html">Twig_ParserInterface</a></span>
				<span class="var-name">$parser</span>			</li>
				</ul>
		
				<hr class="separator" />
		<div class="notes">Implementation of:</div>
			<dl>
			<dt><a href="../twig/Twig_TokenParserBrokerInterface.html#methodsetParser">Twig_TokenParserBrokerInterface::setParser()</a></dt>
						<dd>Calls Twig_TokenParserInterface::setParser on all parsers the implementation knowns of.</dd>
					</dl>
			
	</div>
						
		</div>
	</div>

	
	<p class="notes" id="credit">
		Documentation generated on Thu, 21 Jul 2011 00:29:10 -0400 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.3</a>
	</p>
	</div></body>
</html>